package com.zhangchuchu.neohealth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhangchuchu.neohealth.entity.ChatMessage;

import java.util.List;

public interface ChatMessageService extends IService<ChatMessage> {


    List<ChatMessage> GetLastMessagesBySender(String recipient);

    List<ChatMessage> getChatHistory(String sender, String recipient);

    void saveMessage(ChatMessage message);
    void markMessagesAsRead(String sender, String recipient);
}
